]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
swipeTracker: Set up TouchSwipeGesture in the capture phase
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 27 Sep 2021 20:44:37 +0000 (22:44 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 24 Nov 2021 22:33:18 +0000 (22:33 +0000)
Use the new API to specify the gesture phase.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1992>

js/ui/swipeTracker.js

index 4546b76b61fcd9f2641441b0c93c9471c8065cc8..b49216e5f66ac8bbcf396414583b176675e592dc 100644 (file)
@@ -493,7 +493,7 @@ var SwipeTracker = GObject.registerClass({
         this.bind_property('orientation', this._touchGesture, 'orientation',
             GObject.BindingFlags.SYNC_CREATE);
         this.bind_property('distance', this._touchGesture, 'distance', 0);
-        global.stage.add_action(this._touchGesture);
+        global.stage.add_action_full('swipe', Clutter.EventPhase.CAPTURE, this._touchGesture);
 
         if (params.allowDrag) {
             this._dragGesture = new TouchSwipeGesture(allowedModes, 1,